#include "WindowInitialiser.h"

Window * WindowInitialiser::initWindow(HINSTANCE hInstance, int showWindowParam) {
	WindowClass *windowClass = new WindowClass(hInstance);
	WindowDescription *windowDescription = new WindowDescription(
		hInstance,
		showWindowParam,
		TurnsDataModel::WINDOW_TITLE,
		TurnsDataModel::WINDOW_DEFAULT_WIDTH,
		TurnsDataModel::WINDOW_DEFAULT_HEIGHT,
		true
	);
	Window *window = new Window(windowClass, windowDescription);
	window->registerClass();
	window->create();
	window->show();
	return window;
}
